%弦截法求分线性方程的根
x=10
x1=16
for i=1:10
    fx=x^3+2*x^2+10*x-100; %f(x)
    fx1=x1^3+2*x1^2+10*x1-100; %f(x1)
    t=x1-fx1/(fx1-fx)*(x1-x);
    x=x1
    x1=t
end
